#include<stdio.h>
void  fun(int(*s)[10], int* b, int* n, int mm, int nn)
{
	int k = 0;
	int i = 0;
	int j = 0;
	for (i = 0; i < mm; i++)
	{
		for (j = 0; j < nn; j++)
			b[k++] = s[i][j];
		(*n)++;
	}
}
int main()
{
	int w[10][10] = { {33,33,33,33},{44,44,44,44},{55,55,55,55} };
	int i = 0; 
	int j = 0;
	int n = 0;
	int a[100] = { 0 };
	fun(w, a, &n, 3, 4);
	for (i = 0; i < 12; i++)
	{
		printf("%d ", a[i]);
	}
	return 0;
}